home *** CD-ROM | disk | FTP | other *** search
/ Aminet 3 / Aminet 3 - July 1994.iso / Aminet / dev / c / flex246.lha / skel.c < prev    next >
C/C++ Source or Header  |  1994-01-04  |  33KB  |  1,224 lines

  1. /* File created from flex.skel via mkskel.sh */
  2.  
  3. #include "flexdef.h"
  4.  
  5. char *skel[] = {
  6.   "/* A lexical scanner generated by flex */",
  7.   "",
  8.   "/* Scanner skeleton version:",
  9.   " * $Header: flex.skl,v 1.2 94/01/04 14:33:15 vern Exp $",
  10.   " */",
  11.   "",
  12.   "#define FLEX_SCANNER",
  13.   "",
  14.   "%-",
  15.   "#include <stdio.h>",
  16.   "%*",
  17.   "",
  18.   "",
  19.   "/* cfront 1.2 defines \"c_plusplus\" instead of \"__cplusplus\" */",
  20.   "#ifdef c_plusplus",
  21.   "#ifndef __cplusplus",
  22.   "#define __cplusplus",
  23.   "#endif",
  24.   "#endif",
  25.   "",
  26.   "",
  27.   "#ifdef __cplusplus",
  28.   "",
  29.   "#include <stdlib.h>",
  30.   "%+",
  31.   "class istream;",
  32.   "%*",
  33.   "#include <unistd.h>",
  34.   "",
  35.   "/* Use prototypes in function declarations. */",
  36.   "#define YY_USE_PROTOS",
  37.   "",
  38.   "/* The \"const\" storage-class-modifier is valid. */",
  39.   "#define YY_USE_CONST",
  40.   "",
  41.   "#else    /* ! __cplusplus */",
  42.   "",
  43.   "#ifdef __STDC__",
  44.   "",
  45.   "#define YY_USE_PROTOS",
  46.   "#define YY_USE_CONST",
  47.   "",
  48.   "#endif    /* __STDC__ */",
  49.   "#endif    /* ! __cplusplus */",
  50.   "",
  51.   "",
  52.   "#ifdef __TURBOC__",
  53.   "#define YY_USE_CONST",
  54.   "#endif",
  55.   "",
  56.   "",
  57.   "#ifndef YY_USE_CONST",
  58.   "#ifndef const",
  59.   "#define const",
  60.   "#endif",
  61.   "#endif",
  62.   "",
  63.   "",
  64.   "#ifdef YY_USE_PROTOS",
  65.   "#define YY_PROTO(proto) proto",
  66.   "#else",
  67.   "#define YY_PROTO(proto) ()",
  68.   "#endif",
  69.   "",
  70.   "/* Returned upon end-of-file. */",
  71.   "#define YY_NULL 0",
  72.   "",
  73.   "/* Promotes a possibly negative, possibly signed char to an unsigned",
  74.   " * integer for use as an array index.  If the signed char is negative,",
  75.   " * we want to instead treat it as an 8-bit unsigned char, hence the",
  76.   " * double cast.",
  77.   " */",
  78.   "#define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c)",
  79.   "",
  80.   "/* Enter a start condition.  This macro really ought to take a parameter,",
  81.   " * but we do it the disgusting crufty way forced on us by the ()-less",
  82.   " * definition of BEGIN.",
  83.   " */",
  84.   "#define BEGIN yy_start = 1 + 2 *",
  85.   "",
  86.   "/* Translate the current start state into a value that can be later handed",
  87.   " * to BEGIN to return to the state.",
  88.   " */",
  89.   "#define YY_START ((yy_start - 1) / 2)",
  90.   "",
  91.   "/* Action number for EOF rule of a given start state. */",
  92.   "#define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)",
  93.   "",
  94.   "/* Special action meaning \"start processing a new file\".  Now included",
  95.   " * only for backward compatibility with previous versions of flex.",
  96.   " */",
  97.   "#define YY_NEW_FILE yyrestart( yyin )",
  98.   "",
  99.   "#define YY_END_OF_BUFFER_CHAR 0",
  100.   "",
  101.   "/* Size of default input buffer. */",
  102.   "#define YY_BUF_SIZE 16384",
  103.   "",
  104.   "typedef struct yy_buffer_state *YY_BUFFER_STATE;",
  105.   "",
  106.   "extern int yyleng;",
  107.   "%-",
  108.   "extern FILE *yyin, *yyout;",
  109.   "%*",
  110.   "",
  111.   "#ifdef __cplusplus",
  112.   "extern \"C\" {",
  113.   "#endif",
  114.   "    extern int yywrap YY_PROTO(( void ));",
  115.   "#ifdef __cplusplus",
  116.   "    }",
  117.   "#endif",
  118.   "",
  119.   "#define EOB_ACT_CONTINUE_SCAN 0",
  120.   "#define EOB_ACT_END_OF_FILE 1",
  121.   "#define EOB_ACT_LAST_MATCH 2",
  122.   "",
  123.   "/* The funky do-while in the following #define is used to turn the definition",
  124.   " * int a single C statement (which needs a semi-colon terminator).  This",
  125.   " * avoids problems with code like:",
  126.   " *",
  127.   " *     if ( condition_holds )",
  128.   " *        yyless( 5 );",
  129.   " *    else",
  130.   " *        do_something_else();",
  131.   " *",
  132.   " * Prior to using the do-while the compiler would get upset at the",
  133.   " * \"else\" because it interpreted the \"if\" statement as being all",
  134.   " * done when it reached the ';' after the yyless() call.",
  135.   " */",
  136.   "",
  137.   "/* Return all but the first 'n' matched characters back to the input stream. */",
  138.   "",
  139.   "#define yyless(n) \\",
  140.   "    do \\",
  141.   "        { \\",
  142.   "        /* Undo effects of setting up yytext. */ \\",
  143.   "        *yy_cp = yy_hold_char; \\",
  144.   "        yy_c_buf_p = yy_cp = yy_bp + n - YY_MORE_ADJ; \\",
  145.   "        YY_DO_BEFORE_ACTION; /* set up yytext again */ \\",
  146.   "        } \\",
  147.   "    while ( 0 )",
  148.   "",
  149.   "#define unput(c) yyunput( c, yytext_ptr )",
  150.   "",
  151.   "",
  152.   "struct yy_buffer_state",
  153.   "    {",
  154.   "%-",
  155.   "    FILE *yy_input_file;",
  156.   "%+",
  157.   "    istream* yy_input_file;",
  158.   "%*",
  159.   "",
  160.   "    char *yy_ch_buf;        /* input buffer */",
  161.   "    char *yy_buf_pos;        /* current position in input buffer */",
  162.   "",
  163.   "    /* Size of input buffer in bytes, not including room for EOB",
  164.   "     * characters.",
  165.   "     */",
  166.   "    int yy_buf_size;",
  167.   "",
  168.   "    /* Number of characters read into yy_ch_buf, not including EOB",
  169.   "     * characters.",
  170.   "     */",
  171.   "    int yy_n_chars;",
  172.   "",
  173.   "    /* Whether this is an \"interactive\" input source; if so, and",
  174.   "     * if we're using stdio for input, then we want to use getc()",
  175.   "     * instead of fread(), to make sure we stop fetching input after",
  176.   "     * each newline.",
  177.   "     */",
  178.   "    int yy_is_interactive;",
  179.   "",
  180.   "    /* Whether to try to fill the input buffer when we reach the",
  181.   "     * end of it.",
  182.   "     */",
  183.   "    int yy_fill_buffer;",
  184.   "",
  185.   "    /* Whether we've seen an EOF on this buffer. */",
  186.   "    int yy_eof_status;",
  187.   "#define EOF_NOT_SEEN 0",
  188.   "    /* \"Pending\" happens when the EOF has been seen but there's still",
  189.   "     * some text to process.  Note that when we actually see the EOF,",
  190.   "     * we switch the status back to \"not seen\" (via yyrestart()), so",
  191.   "     * that the user can continue scanning by just pointing yyin at",
  192.   "     * a new input file.",
  193.   "     */",
  194.   "#define EOF_PENDING 1",
  195.   "    };",
  196.   "",
  197.   "%- Standard (non-C++) definition",
  198.   "static YY_BUFFER_STATE yy_current_buffer = 0;",
  199.   "%*",
  200.   "",
  201.   "/* We provide macros for accessing buffer states in case in the",
  202.   " * future we want to put the buffer states in a more general",
  203.   " * \"scanner state\".",
  204.   " */",
  205.   "#define YY_CURRENT_BUFFER yy_current_buffer",
  206.   "",
  207.   "",
  208.   "%- Standard (non-C++) definition",
  209.   "/* yy_hold_char holds the character lost when yytext is formed. */",
  210.   "static char yy_hold_char;",
  211.   "",
  212.   "static int yy_n_chars;        /* number of characters read into yy_ch_buf */",
  213.   "",
  214.   "",
  215.   "int yyleng;",
  216.   "",
  217.   "/* Points to current character in buffer. */",
  218.   "static char *yy_c_buf_p = (char *) 0;",
  219.   "static int yy_init = 1;        /* whether we need to initialize */",
  220.   "static int yy_start = 0;    /* start state number */",
  221.   "",
  222.   "/* Flag which is used to allow yywrap()'s to do buffer switches",
  223.   " * instead of setting up a fresh yyin.  A bit of a hack ...",
  224.   " */",
  225.   "static int yy_did_buffer_switch_on_eof;",
  226.   "",
  227.   "static void yyunput YY_PROTO(( int c, char *buf_ptr ));",
  228.   "void yyrestart YY_PROTO(( FILE *input_file ));",
  229.   "void yy_switch_to_buffer YY_PROTO(( YY_BUFFER_STATE new_buffer ));",
  230.   "void yy_load_buffer_state YY_PROTO(( void ));",
  231.   "YY_BUFFER_STATE yy_create_buffer YY_PROTO(( FILE *file, int size ));",
  232.   "void yy_delete_buffer YY_PROTO(( YY_BUFFER_STATE b ));",
  233.   "void yy_init_buffer YY_PROTO(( YY_BUFFER_STATE b, FILE *file ));",
  234.   "",
  235.   "static int yy_start_stack_ptr = 0;",
  236.   "static int yy_start_stack_depth = 0;",
  237.   "static int *yy_start_stack = 0;",
  238.   "static void yy_push_state YY_PROTO(( int new_state ));",
  239.   "static void yy_pop_state YY_PROTO(( void ));",
  240.   "static int yy_top_state YY_PROTO(( void ));",
  241.   "%*",
  242.   "",
  243.   "#ifndef yytext_ptr",
  244.   "static void yy_flex_strcpy YY_PROTO(( char *, const char * ));",
  245.   "#endif",
  246.   "",
  247.   "static void *yy_flex_alloc YY_PROTO(( unsigned int ));",
  248.   "static void *yy_flex_realloc YY_PROTO(( void *ptr, unsigned int ));",
  249.   "static void yy_flex_free YY_PROTO(( void * ));",
  250.   "",
  251.   "#define yy_new_buffer yy_create_buffer",
  252.   "",
  253.   "%% yytext/yyin/yyout/yy_state_type/yylineno etc. def's & init go here",
  254.   "",
  255.   "%- Standard (non-C++) definition",
  256.   "#ifdef __cplusplus",
  257.   "static int yyinput YY_PROTO(( void ));",
  258.   "#else",
  259.   "static int input YY_PROTO(( void ));",
  260.   "#endif",
  261.   "%*",
  262.   "",
  263.   "%- Standard (non-C++) definition",
  264.   "static yy_state_type yy_get_previous_state YY_PROTO(( void ));",
  265.   "static yy_state_type yy_try_NUL_trans YY_PROTO(( yy_state_type current_state ));",
  266.   "static int yy_get_next_buffer YY_PROTO(( void ));",
  267.   "static void yy_fatal_error YY_PROTO(( const char msg[] ));",
  268.   "%*",
  269.   "",
  270.   "/* Done after the current pattern has been matched and before the",
  271.   " * corresponding action - sets up yytext.",
  272.   " */",
  273.   "#define YY_DO_BEFORE_ACTION \\",
  274.   "    yytext_ptr = yy_bp; \\",
  275.   "%% code to fiddle yytext and yyleng for yymore() goes here",
  276.   "    yy_hold_char = *yy_cp; \\",
  277.   "    *yy_cp = '\\0'; \\",
  278.   "%% code to copy yytext_ptr to yytext[] goes here, if %array",
  279.   "    yy_c_buf_p = yy_cp;",
  280.   "",
  281.   "%% data tables for the DFA and the user's section 1 definitions go here",
  282.   "",
  283.   "/* Macros after this point can all be overridden by user definitions in",
  284.   " * section 1.",
  285.   " */",
  286.   "",
  287.   "#ifdef YY_MALLOC_DECL",
  288.   "YY_MALLOC_DECL",
  289.   "#else",
  290.   "#if __STDC__",
  291.   "#ifndef __cplusplus",
  292.   "#include <stdlib.h>",
  293.   "#endif",
  294.   "#else",
  295.   "/* Just try to get by without declaring the routines.  This will fail",
  296.   " * miserably on non-ANSI systems for which sizeof(size_t) != sizeof(int)",
  297.   " * or sizeof(void*) != sizeof(int).",
  298.   " */",
  299.   "#endif",
  300.   "#endif",
  301.   "",
  302.   "/* Amount of stuff to slurp up with each read. */",
  303.   "#ifndef YY_READ_BUF_SIZE",
  304.   "#define YY_READ_BUF_SIZE 8192",
  305.   "#endif",
  306.   "",
  307.   "/* Copy whatever the last rule matched to the standard output. */",
  308.   "",
  309.   "#ifndef ECHO",
  310.   "%- Standard (non-C++) definition",
  311.   "/* This used to be an fputs(), but since the string might contain NUL's,",
  312.   " * we now use fwrite().",
  313.   " */",
  314.   "#define ECHO (void) fwrite( yytext, yyleng, 1, yyout )",
  315.   "%+ C++ definition",
  316.   "#define ECHO LexerOutput( yytext, yyleng )",
  317.   "%*",
  318.   "#endif",
  319.   "",
  320.   "/* Gets input and stuffs it into \"buf\".  number of characters read, or YY_NULL,",
  321.   " * is returned in \"result\".",
  322.   " */",
  323.   "#ifndef YY_INPUT",
  324.   "#define YY_INPUT(buf,result,max_size) \\",
  325.   "%% fread()/read() definition of YY_INPUT goes here unless we're doing C++",
  326.   "%+ C++ definition",
  327.   "    if ( (result = LexerInput( (char *) buf, max_size )) < 0 ) \\",
  328.   "        YY_FATAL_ERROR( \"input in flex scanner failed\" );",
  329.   "%*",
  330.   "#endif",
  331.   "",
  332.   "/* No semi-colon after return; correct usage is to write \"yyterminate();\" -",
  333.   " * we don't want an extra ';' after the \"return\" because that will cause",
  334.   " * some compilers to complain about unreachable statements.",
  335.   " */",
  336.   "#ifndef yyterminate",
  337.   "#define yyterminate() return YY_NULL",
  338.   "#endif",
  339.   "",
  340.   "/* Number of entries by which start-condition stack grows. */",
  341.   "#ifndef YY_START_STACK_INCR",
  342.   "#define YY_START_STACK_INCR 25",
  343.   "#endif",
  344.   "",
  345.   "/* Report a fatal error. */",
  346.   "#ifndef YY_FATAL_ERROR",
  347.   "%-",
  348.   "#define YY_FATAL_ERROR(msg) yy_fatal_error( msg )",
  349.   "%+",
  350.   "#define YY_FATAL_ERROR(msg) LexerError( msg )",
  351.   "%*",
  352.   "#endif",
  353.   "",
  354.   "/* Default declaration of generated scanner - a define so the user can",
  355.   " * easily add parameters.",
  356.   " */",
  357.   "#ifndef YY_DECL",
  358.   "%- Standard (non-C++) definition",
  359.   "#define YY_DECL int yylex YY_PROTO(( void ))",
  360.   "%+ C++ definition",
  361.   "#define YY_DECL int yyFlexLexer::yylex()",
  362.   "%*",
  363.   "#endif",
  364.   "",
  365.   "/* Code executed at the beginning of each rule, after yytext and yyleng",
  366.   " * have been set up.",
  367.   " */",
  368.   "#ifndef YY_USER_ACTION",
  369.   "#define YY_USER_ACTION",
  370.   "#endif",
  371.   "",
  372.   "/* Code executed at the end of each rule. */",
  373.   "#ifndef YY_BREAK",
  374.   "#define YY_BREAK break;",
  375.   "#endif",
  376.   "",
  377.   "YY_DECL",
  378.   "    {",
  379.   "    register yy_state_type yy_current_state;",
  380.   "    register char *yy_cp, *yy_bp;",
  381.   "    register int yy_act;",
  382.   "",
  383.   "%% user's declarations go here",
  384.   "",
  385.   "    if ( yy_init )",
  386.   "        {",
  387.   "#ifdef YY_USER_INIT",
  388.   "        YY_USER_INIT;",
  389.   "#endif",
  390.   "",
  391.   "        if ( ! yy_start )",
  392.   "            yy_start = 1;    /* first start state */",
  393.   "",
  394.   "        if ( ! yyin )",
  395.   "%-",
  396.   "            yyin = stdin;",
  397.   "%+",
  398.   "            yyin = &cin;",
  399.   "%*",
  400.   "",
  401.   "        if ( ! yyout )",
  402.   "%-",
  403.   "            yyout = stdout;",
  404.   "%+",
  405.   "            yyout = &cout;",
  406.   "%*",
  407.   "",
  408.   "        if ( yy_current_buffer )",
  409.   "            yy_init_buffer( yy_current_buffer, yyin );",
  410.   "        else",
  411.   "            yy_current_buffer =",
  412.   "                yy_create_buffer( yyin, YY_BUF_SIZE );",
  413.   "",
  414.   "        yy_load_buffer_state();",
  415.   "",
  416.   "        yy_init = 0;",
  417.   "        }",
  418.   "",
  419.   "    while ( 1 )        /* loops until end-of-file is reached */",
  420.   "        {",
  421.   "%% yymore()-related code goes here",
  422.   "        yy_cp = yy_c_buf_p;",
  423.   "",
  424.   "        /* Support of yytext. */",
  425.   "        *yy_cp = yy_hold_char;",
  426.   "",
  427.   "        /* yy_bp points to the position in yy_ch_buf of the start of",
  428.   "         * the current run.",
  429.   "         */",
  430.   "        yy_bp = yy_cp;",
  431.   "",
  432.   "%% code to set up and find next match goes here",
  433.   "",
  434.   "yy_find_action:",
  435.   "%% code to find the action number goes here",
  436.   "",
  437.   "        YY_DO_BEFORE_ACTION;",
  438.   "",
  439.   "%% code for yylineno update goes here, if -l option",
  440.   "",
  441.   "do_action:    /* This label is used only to access EOF actions. */",
  442.   "",
  443.   "%% debug code goes here",
  444.   "",
  445.   "        switch ( yy_act )",
  446.   "    { /* beginning of action switch */",
  447.   "%% actions go here",
  448.   "",
  449.   "    case YY_END_OF_BUFFER:",
  450.   "        {",
  451.   "        /* Amount of text matched not including the EOB char. */",
  452.   "        int yy_amount_of_matched_text = yy_cp - yytext_ptr - 1;",
  453.   "",
  454.   "        /* Undo the effects of YY_DO_BEFORE_ACTION. */",
  455.   "        *yy_cp = yy_hold_char;",
  456.   "",
  457.   "        if ( yy_current_buffer->yy_input_file != yyin )",
  458.   "            {",
  459.   "            /* This can happen if we scan a file, yywrap() returns",
  460.   "             * 1, and then later the user points yyin at a new",
  461.   "             * file to resume scanning.  We have to assure",
  462.   "             * consistency between yy_current_buffer and our",
  463.   "             * globals.  Here is the right place to do so, because",
  464.   "             * this is the first action (other than possibly a",
  465.   "             * back-up) that will match for the new input file.",
  466.   "             */",
  467.   "            yy_current_buffer->yy_input_file = yyin;",
  468.   "            yy_n_chars = yy_current_buffer->yy_n_chars;",
  469.   "            }",
  470.   "",
  471.   "        /* Note that here we test for yy_c_buf_p \"<=\" to the position",
  472.   "         * of the first EOB in the buffer, since yy_c_buf_p will",
  473.   "         * already have been incremented past the NUL character",
  474.   "         * (since all states make transitions on EOB to the",
  475.   "         * end-of-buffer state).  Contrast this with the test",
  476.   "         * in input().",
  477.   "         */",
  478.   "        if ( yy_c_buf_p <= &yy_current_buffer->yy_ch_buf[yy_n_chars] )",
  479.   "            { /* This was really a NUL. */",
  480.   "            yy_state_type yy_next_state;",
  481.   "",
  482.   "            yy_c_buf_p = yytext_ptr + yy_amount_of_matched_text;",
  483.   "",
  484.   "            yy_current_state = yy_get_previous_state();",
  485.   "",
  486.   "            /* Okay, we're now positioned to make the NUL",
  487.   "             * transition.  We couldn't have",
  488.   "             * yy_get_previous_state() go ahead and do it",
  489.   "             * for us because it doesn't know how to deal",
  490.   "             * with the possibility of jamming (and we don't",
  491.   "             * want to build jamming into it because then it",
  492.   "             * will run more slowly).",
  493.   "             */",
  494.   "",
  495.   "            yy_next_state = yy_try_NUL_trans( yy_current_state );",
  496.   "",
  497.   "            yy_bp = yytext_ptr + YY_MORE_ADJ;",
  498.   "",
  499.   "            if ( yy_next_state )",
  500.   "                {",
  501.   "                /* Consume the NUL. */",
  502.   "                yy_cp = ++yy_c_buf_p;",
  503.   "                yy_current_state = yy_next_state;",
  504.   "                goto yy_match;",
  505.   "                }",
  506.   "",
  507.   "            else",
  508.   "                {",
  509.   "%% code to do back-up for compressed tables and set up yy_cp goes here",
  510.   "                goto yy_find_action;",
  511.   "                }",
  512.   "            }",
  513.   "",
  514.   "        else switch ( yy_get_next_buffer() )",
  515.   "            {",
  516.   "            case EOB_ACT_END_OF_FILE:",
  517.   "                {",
  518.   "                yy_did_buffer_switch_on_eof = 0;",
  519.   "",
  520.   "                if ( yywrap() )",
  521.   "                    {",
  522.   "                    /* Note: because we've taken care in",
  523.   "                     * yy_get_next_buffer() to have set up",
  524.   "                     * yytext, we can now set up",
  525.   "                     * yy_c_buf_p so that if some total",
  526.   "                     * hoser (like flex itself) wants to",
  527.   "                     * call the scanner after we return the",
  528.   "                     * YY_NULL, it'll still work - another",
  529.   "                     * YY_NULL will get returned.",
  530.   "                     */",
  531.   "                    yy_c_buf_p = yytext_ptr + YY_MORE_ADJ;",
  532.   "",
  533.   "                    yy_act = YY_STATE_EOF(YY_START);",
  534.   "                    goto do_action;",
  535.   "                    }",
  536.   "",
  537.   "                else",
  538.   "                    {",
  539.   "                    if ( ! yy_did_buffer_switch_on_eof )",
  540.   "                        YY_NEW_FILE;",
  541.   "                    }",
  542.   "                break;",
  543.   "                }",
  544.   "",
  545.   "            case EOB_ACT_CONTINUE_SCAN:",
  546.   "                yy_c_buf_p =",
  547.   "                    yytext_ptr + yy_amount_of_matched_text;",
  548.   "",
  549.   "                yy_current_state = yy_get_previous_state();",
  550.   "",
  551.   "                yy_cp = yy_c_buf_p;",
  552.   "                yy_bp = yytext_ptr + YY_MORE_ADJ;",
  553.   "                goto yy_match;",
  554.   "",
  555.   "            case EOB_ACT_LAST_MATCH:",
  556.   "                yy_c_buf_p =",
  557.   "                &yy_current_buffer->yy_ch_buf[yy_n_chars];",
  558.   "",
  559.   "                yy_current_state = yy_get_previous_state();",
  560.   "",
  561.   "                yy_cp = yy_c_buf_p;",
  562.   "                yy_bp = yytext_ptr + YY_MORE_ADJ;",
  563.   "                goto yy_find_action;",
  564.   "            }",
  565.   "        break;",
  566.   "        }",
  567.   "",
  568.   "    default:",
  569.   "        YY_FATAL_ERROR(",
  570.   "            \"fatal flex scanner internal error--no action found\" );",
  571.   "    } /* end of action switch */",
  572.   "        } /* end of scanning one token */",
  573.   "    } /* end of yylex */",
  574.   "",
  575.   "%+",
  576.   "#ifdef YY_INTERACTIVE",
  577.   "int yyFlexLexer::LexerInput( char* buf, int /* max_size */ )",
  578.   "#else",
  579.   "int yyFlexLexer::LexerInput( char* buf, int max_size )",
  580.   "#endif",
  581.   "    {",
  582.   "    if ( yyin->eof() || yyin->fail() )",
  583.   "        return 0;",
  584.   "",
  585.   "#ifdef YY_INTERACTIVE",
  586.   "    yyin->get( buf[0] );",
  587.   "",
  588.   "    if ( yyin->eof() )",
  589.   "        return 0;",
  590.   "",
  591.   "    if ( yyin->bad() )",
  592.   "        return -1;",
  593.   "",
  594.   "    return 1;",
  595.   "",
  596.   "#else",
  597.   "    (void) yyin->read( buf, max_size );",
  598.   "",
  599.   "    if ( yyin->bad() )",
  600.   "        return -1;",
  601.   "    else",
  602.   "        return yyin->gcount();",
  603.   "#endif",
  604.   "    }",
  605.   "",
  606.   "void yyFlexLexer::LexerOutput( const char* buf, int size )",
  607.   "    {",
  608.   "    (void) yyout->write( buf, size );",
  609.   "    }",
  610.   "%*",
  611.   "",
  612.   "/* yy_get_next_buffer - try to read in a new buffer",
  613.   " *",
  614.   " * Returns a code representing an action:",
  615.   " *    EOB_ACT_LAST_MATCH -",
  616.   " *    EOB_ACT_CONTINUE_SCAN - continue scanning from current position",
  617.   " *    EOB_ACT_END_OF_FILE - end of file",
  618.   " */",
  619.   "",
  620.   "%-",
  621.   "static int yy_get_next_buffer()",
  622.   "%+",
  623.   "int yyFlexLexer::yy_get_next_buffer()",
  624.   "%*",
  625.   "    {",
  626.   "    register char *dest = yy_current_buffer->yy_ch_buf;",
  627.   "    register char *source = yytext_ptr - 1; /* copy prev. char, too */",
  628.   "    register int number_to_move, i;",
  629.   "    int ret_val;",
  630.   "",
  631.   "    if ( yy_c_buf_p > &yy_current_buffer->yy_ch_buf[yy_n_chars + 1] )",
  632.   "        YY_FATAL_ERROR(",
  633.   "        \"fatal flex scanner internal error--end of buffer missed\" );",
  634.   "",
  635.   "    if ( yy_current_buffer->yy_fill_buffer == 0 )",
  636.   "        { /* Don't try to fill the buffer, so this is an EOF. */",
  637.   "        if ( yy_c_buf_p - yytext_ptr - YY_MORE_ADJ == 1 )",
  638.   "            {",
  639.   "            /* We matched a singled characater, the EOB, so",
  640.   "             * treat this as a final EOF.",
  641.   "             */",
  642.   "            return EOB_ACT_END_OF_FILE;",
  643.   "            }",
  644.   "",
  645.   "        else",
  646.   "            {",
  647.   "            /* We matched some text prior to the EOB, first",
  648.   "             * process it.",
  649.   "             */",
  650.   "            return EOB_ACT_LAST_MATCH;",
  651.   "            }",
  652.   "        }",
  653.   "",
  654.   "    /* Try to read more data. */",
  655.   "",
  656.   "    /* First move last chars to start of buffer. */",
  657.   "    number_to_move = yy_c_buf_p - yytext_ptr;",
  658.   "",
  659.   "    for ( i = 0; i < number_to_move; ++i )",
  660.   "        *(dest++) = *(source++);",
  661.   "",
  662.   "    if ( yy_current_buffer->yy_eof_status != EOF_NOT_SEEN )",
  663.   "        /* don't do the read, it's not guaranteed to return an EOF,",
  664.   "         * just force an EOF",
  665.   "         */",
  666.   "        yy_n_chars = 0;",
  667.   "",
  668.   "    else",
  669.   "        {",
  670.   "        int num_to_read =",
  671.   "            yy_current_buffer->yy_buf_size - number_to_move - 1;",
  672.   "",
  673.   "        while ( num_to_read <= 0 )",
  674.   "            { /* Not enough room in the buffer - grow it. */",
  675.   "#ifdef YY_USES_REJECT",
  676.   "            YY_FATAL_ERROR(",
  677.   "\"input buffer overflow, can't enlarge buffer because scanner uses REJECT\" );",
  678.   "#else",
  679.   "",
  680.   "            /* just a shorter name for the current buffer */",
  681.   "            YY_BUFFER_STATE b = yy_current_buffer;",
  682.   "",
  683.   "            int yy_c_buf_p_offset = yy_c_buf_p - b->yy_ch_buf;",
  684.   "",
  685.   "            b->yy_buf_size *= 2;",
  686.   "            b->yy_ch_buf = (char *)",
  687.   "                yy_flex_realloc( (void *) b->yy_ch_buf,",
  688.   "                         b->yy_buf_size );",
  689.   "",
  690.   "            if ( ! b->yy_ch_buf )",
  691.   "                YY_FATAL_ERROR(",
  692.   "                \"fatal error - scanner input buffer overflow\" );",
  693.   "",
  694.   "            yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset];",
  695.   "",
  696.   "            num_to_read = yy_current_buffer->yy_buf_size -",
  697.   "                        number_to_move - 1;",
  698.   "#endif",
  699.   "            }",
  700.   "",
  701.   "        if ( num_to_read > YY_READ_BUF_SIZE )",
  702.   "            num_to_read = YY_READ_BUF_SIZE;",
  703.   "",
  704.   "        /* Read in more data. */",
  705.   "        YY_INPUT( (&yy_current_buffer->yy_ch_buf[number_to_move]),",
  706.   "            yy_n_chars, num_to_read );",
  707.   "        }",
  708.   "",
  709.   "    if ( yy_n_chars == 0 )",
  710.   "        {",
  711.   "        if ( number_to_move - YY_MORE_ADJ == 1 )",
  712.   "            {",
  713.   "            ret_val = EOB_ACT_END_OF_FILE;",
  714.   "            yyrestart( yyin );",
  715.   "            }",
  716.   "",
  717.   "        else",
  718.   "            {",
  719.   "            ret_val = EOB_ACT_LAST_MATCH;",
  720.   "            yy_current_buffer->yy_eof_status = EOF_PENDING;",
  721.   "            }",
  722.   "        }",
  723.   "",
  724.   "    else",
  725.   "        ret_val = EOB_ACT_CONTINUE_SCAN;",
  726.   "",
  727.   "    yy_n_chars += number_to_move;",
  728.   "    yy_current_buffer->yy_ch_buf[yy_n_chars] = YY_END_OF_BUFFER_CHAR;",
  729.   "    yy_current_buffer->yy_ch_buf[yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR;",
  730.   "",
  731.   "    /* yytext begins at the second character in yy_ch_buf; the first",
  732.   "     * character is the one which preceded it before reading in the latest",
  733.   "     * buffer; it needs to be kept around in case it's a newline, so",
  734.   "     * yy_get_previous_state() will have with '^' rules active.",
  735.   "     */",
  736.   "",
  737.   "    yytext_ptr = &yy_current_buffer->yy_ch_buf[1];",
  738.   "",
  739.   "    return ret_val;",
  740.   "    }",
  741.   "",
  742.   "",
  743.   "/* yy_get_previous_state - get the state just before the EOB char was reached */",
  744.   "",
  745.   "%-",
  746.   "static yy_state_type yy_get_previous_state()",
  747.   "%+",
  748.   "yy_state_type yyFlexLexer::yy_get_previous_state()",
  749.   "%*",
  750.   "    {",
  751.   "    register yy_state_type yy_current_state;",
  752.   "    register char *yy_cp;",
  753.   "",
  754.   "%% code to get the start state into yy_current_state goes here",
  755.   "",
  756.   "    for ( yy_cp = yytext_ptr + YY_MORE_ADJ; yy_cp < yy_c_buf_p; ++yy_cp )",
  757.   "        {",
  758.   "%% code to find the next state goes here",
  759.   "        }",
  760.   "",
  761.   "    return yy_current_state;",
  762.   "    }",
  763.   "",
  764.   "",
  765.   "/* yy_try_NUL_trans - try to make a transition on the NUL character",
  766.   " *",
  767.   " * synopsis",
  768.   " *    next_state = yy_try_NUL_trans( current_state );",
  769.   " */",
  770.   "",
  771.   "%-",
  772.   "#ifdef YY_USE_PROTOS",
  773.   "static yy_state_type yy_try_NUL_trans( yy_state_type yy_current_state )",
  774.   "#else",
  775.   "static yy_state_type yy_try_NUL_trans( yy_current_state )",
  776.   "yy_state_type yy_current_state;",
  777.   "#endif",
  778.   "%+",
  779.   "yy_state_type yyFlexLexer::yy_try_NUL_trans( yy_state_type yy_current_state )",
  780.   "%*",
  781.   "    {",
  782.   "    register int yy_is_jam;",
  783.   "%% code to find the next state, and perhaps do backing up, goes here",
  784.   "",
  785.   "    return yy_is_jam ? 0 : yy_current_state;",
  786.   "    }",
  787.   "",
  788.   "",
  789.   "%-",
  790.   "#ifdef YY_USE_PROTOS",
  791.   "static void yyunput( int c, register char *yy_bp )",
  792.   "#else",
  793.   "static void yyunput( c, yy_bp )",
  794.   "int c;",
  795.   "register char *yy_bp;",
  796.   "#endif",
  797.   "%+",
  798.   "void yyFlexLexer::yyunput( int c, register char* yy_bp )",
  799.   "%*",
  800.   "    {",
  801.   "    register char *yy_cp = yy_c_buf_p;",
  802.   "",
  803.   "    /* undo effects of setting up yytext */",
  804.   "    *yy_cp = yy_hold_char;",
  805.   "",
  806.   "    if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )",
  807.   "        { /* need to shift things up to make room */",
  808.   "        /* +2 for EOB chars. */",
  809.   "        register int number_to_move = yy_n_chars + 2;",
  810.   "        register char *dest = &yy_current_buffer->yy_ch_buf[",
  811.   "                    yy_current_buffer->yy_buf_size + 2];",
  812.   "        register char *source =",
  813.   "                &yy_current_buffer->yy_ch_buf[number_to_move];",
  814.   "",
  815.   "        while ( source > yy_current_buffer->yy_ch_buf )",
  816.   "            *--dest = *--source;",
  817.   "",
  818.   "        yy_cp += dest - source;",
  819.   "        yy_bp += dest - source;",
  820.   "        yy_n_chars = yy_current_buffer->yy_buf_size;",
  821.   "",
  822.   "        if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )",
  823.   "            YY_FATAL_ERROR( \"flex scanner push-back overflow\" );",
  824.   "        }",
  825.   "",
  826.   "    if ( yy_cp > yy_bp && yy_cp[-1] == '\\n' )",
  827.   "        yy_cp[-2] = '\\n';",
  828.   "",
  829.   "    *--yy_cp = (char) c;",
  830.   "",
  831.   "%% update yylineno here, if doing -l",
  832.   "",
  833.   "    /* Note: the formal parameter *must* be called \"yy_bp\" for this",
  834.   "     * macro to now work correctly.",
  835.   "     */",
  836.   "    YY_DO_BEFORE_ACTION; /* set up yytext again */",
  837.   "    }",
  838.   "",
  839.   "",
  840.   "%-",
  841.   "#ifdef __cplusplus",
  842.   "static int yyinput()",
  843.   "#else",
  844.   "static int input()",
  845.   "#endif",
  846.   "%+",
  847.   "int yyFlexLexer::yyinput()",
  848.   "%*",
  849.   "    {",
  850.   "    int c;",
  851.   "",
  852.   "    *yy_c_buf_p = yy_hold_char;",
  853.   "",
  854.   "    if ( *yy_c_buf_p == YY_END_OF_BUFFER_CHAR )",
  855.   "        {",
  856.   "        /* yy_c_buf_p now points to the character we want to return.",
  857.   "         * If this occurs *before* the EOB characters, then it's a",
  858.   "         * valid NUL; if not, then we've hit the end of the buffer.",
  859.   "         */",
  860.   "        if ( yy_c_buf_p < &yy_current_buffer->yy_ch_buf[yy_n_chars] )",
  861.   "            /* This was really a NUL. */",
  862.   "            *yy_c_buf_p = '\\0';",
  863.   "",
  864.   "        else",
  865.   "            { /* need more input */",
  866.   "            yytext_ptr = yy_c_buf_p;",
  867.   "            ++yy_c_buf_p;",
  868.   "",
  869.   "            switch ( yy_get_next_buffer() )",
  870.   "                {",
  871.   "                case EOB_ACT_END_OF_FILE:",
  872.   "                    {",
  873.   "                    if ( yywrap() )",
  874.   "                        {",
  875.   "                        yy_c_buf_p =",
  876.   "                        yytext_ptr + YY_MORE_ADJ;",
  877.   "                        return EOF;",
  878.   "                        }",
  879.   "",
  880.   "                    YY_NEW_FILE;",
  881.   "#ifdef __cplusplus",
  882.   "                    return yyinput();",
  883.   "#else",
  884.   "                    return input();",
  885.   "#endif",
  886.   "                    }",
  887.   "",
  888.   "                case EOB_ACT_CONTINUE_SCAN:",
  889.   "                    yy_c_buf_p = yytext_ptr + YY_MORE_ADJ;",
  890.   "                    break;",
  891.   "",
  892.   "                case EOB_ACT_LAST_MATCH:",
  893.   "#ifdef __cplusplus",
  894.   "                    YY_FATAL_ERROR(",
  895.   "                    \"unexpected last match in yyinput()\" );",
  896.   "#else",
  897.   "                    YY_FATAL_ERROR(",
  898.   "                    \"unexpected last match in input()\" );",
  899.   "#endif",
  900.   "                }",
  901.   "            }",
  902.   "        }",
  903.   "",
  904.   "    c = *yy_c_buf_p;",
  905.   "    *yy_c_buf_p = '\\0';    /* preserve yytext */",
  906.   "    yy_hold_char = *++yy_c_buf_p;",
  907.   "",
  908.   "    return c;",
  909.   "    }",
  910.   "",
  911.   "",
  912.   "%-",
  913.   "#ifdef YY_USE_PROTOS",
  914.   "void yyrestart( FILE *input_file )",
  915.   "#else",
  916.   "void yyrestart( input_file )",
  917.   "FILE *input_file;",
  918.   "#endif",
  919.   "%+",
  920.   "void yyFlexLexer::yyrestart( istream* input_file )",
  921.   "%*",
  922.   "    {",
  923.   "    if ( ! yy_current_buffer )",
  924.   "        yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE );",
  925.   "",
  926.   "    yy_init_buffer( yy_current_buffer, input_file );",
  927.   "    yy_load_buffer_state();",
  928.   "    }",
  929.   "",
  930.   "",
  931.   "%-",
  932.   "#ifdef YY_USE_PROTOS",
  933.   "void yy_switch_to_buffer( YY_BUFFER_STATE new_buffer )",
  934.   "#else",
  935.   "void yy_switch_to_buffer( new_buffer )",
  936.   "YY_BUFFER_STATE new_buffer;",
  937.   "#endif",
  938.   "%+",
  939.   "void yyFlexLexer::yy_switch_to_buffer( YY_BUFFER_STATE new_buffer )",
  940.   "%*",
  941.   "    {",
  942.   "    if ( yy_current_buffer == new_buffer )",
  943.   "        return;",
  944.   "",
  945.   "    if ( yy_current_buffer )",
  946.   "        {",
  947.   "        /* Flush out information for old buffer. */",
  948.   "        *yy_c_buf_p = yy_hold_char;",
  949.   "        yy_current_buffer->yy_buf_pos = yy_c_buf_p;",
  950.   "        yy_current_buffer->yy_n_chars = yy_n_chars;",
  951.   "        }",
  952.   "",
  953.   "    yy_current_buffer = new_buffer;",
  954.   "    yy_load_buffer_state();",
  955.   "",
  956.   "    /* We don't actually know whether we did this switch during",
  957.   "     * EOF (yywrap()) processing, but the only time this flag",
  958.   "     * is looked at is after yywrap() is called, so it's safe",
  959.   "     * to go ahead and always set it.",
  960.   "     */",
  961.   "    yy_did_buffer_switch_on_eof = 1;",
  962.   "    }",
  963.   "",
  964.   "",
  965.   "%-",
  966.   "#ifdef YY_USE_PROTOS",
  967.   "void yy_load_buffer_state( void )",
  968.   "#else",
  969.   "void yy_load_buffer_state()",
  970.   "#endif",
  971.   "%+",
  972.   "void yyFlexLexer::yy_load_buffer_state()",
  973.   "%*",
  974.   "    {",
  975.   "    yy_n_chars = yy_current_buffer->yy_n_chars;",
  976.   "    yytext_ptr = yy_c_buf_p = yy_current_buffer->yy_buf_pos;",
  977.   "    yyin = yy_current_buffer->yy_input_file;",
  978.   "    yy_hold_char = *yy_c_buf_p;",
  979.   "    }",
  980.   "",
  981.   "",
  982.   "%-",
  983.   "#ifdef YY_USE_PROTOS",
  984.   "YY_BUFFER_STATE yy_create_buffer( FILE *file, int size )",
  985.   "#else",
  986.   "YY_BUFFER_STATE yy_create_buffer( file, size )",
  987.   "FILE *file;",
  988.   "int size;",
  989.   "#endif",
  990.   "%+",
  991.   "YY_BUFFER_STATE yyFlexLexer::yy_create_buffer( istream* file, int size )",
  992.   "%*",
  993.   "    {",
  994.   "    YY_BUFFER_STATE b;",
  995.   "",
  996.   "    b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );",
  997.   "",
  998.   "    if ( ! b )",
  999.   "        YY_FATAL_ERROR( \"out of dynamic memory in yy_create_buffer()\" );",
  1000.   "",
  1001.   "    b->yy_buf_size = size;",
  1002.   "",
  1003.   "    /* yy_ch_buf has to be 2 characters longer than the size given because",
  1004.   "     * we need to put in 2 end-of-buffer characters.",
  1005.   "     */",
  1006.   "    b->yy_ch_buf = (char *) yy_flex_alloc( b->yy_buf_size + 2 );",
  1007.   "",
  1008.   "    if ( ! b->yy_ch_buf )",
  1009.   "        YY_FATAL_ERROR( \"out of dynamic memory in yy_create_buffer()\" );",
  1010.   "",
  1011.   "    yy_init_buffer( b, file );",
  1012.   "",
  1013.   "    return b;",
  1014.   "    }",
  1015.   "",
  1016.   "",
  1017.   "%-",
  1018.   "#ifdef YY_USE_PROTOS",
  1019.   "void yy_delete_buffer( YY_BUFFER_STATE b )",
  1020.   "#else",
  1021.   "void yy_delete_buffer( b )",
  1022.   "YY_BUFFER_STATE b;",
  1023.   "#endif",
  1024.   "%+",
  1025.   "void yyFlexLexer::yy_delete_buffer( YY_BUFFER_STATE b )",
  1026.   "%*",
  1027.   "    {",
  1028.   "    if ( b == yy_current_buffer )",
  1029.   "        yy_current_buffer = (YY_BUFFER_STATE) 0;",
  1030.   "",
  1031.   "    yy_flex_free( (void *) b->yy_ch_buf );",
  1032.   "    yy_flex_free( (void *) b );",
  1033.   "    }",
  1034.   "",
  1035.   "",
  1036.   "%-",
  1037.   "#ifdef YY_USE_PROTOS",
  1038.   "void yy_init_buffer( YY_BUFFER_STATE b, FILE *file )",
  1039.   "#else",
  1040.   "void yy_init_buffer( b, file )",
  1041.   "YY_BUFFER_STATE b;",
  1042.   "FILE *file;",
  1043.   "#endif",
  1044.   "%+",
  1045.   "void yyFlexLexer::yy_init_buffer( YY_BUFFER_STATE b, istream* file )",
  1046.   "%*",
  1047.   "    {",
  1048.   "    b->yy_input_file = file;",
  1049.   "",
  1050.   "    /* We put in the '\\n' and start reading from [1] so that an",
  1051.   "     * initial match-at-newline will be true.",
  1052.   "     */",
  1053.   "",
  1054.   "    b->yy_ch_buf[0] = '\\n';",
  1055.   "    b->yy_n_chars = 1;",
  1056.   "",
  1057.   "    /* We always need two end-of-buffer characters.  The first causes",
  1058.   "     * a transition to the end-of-buffer state.  The second causes",
  1059.   "     * a jam in that state.",
  1060.   "     */",
  1061.   "    b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;",
  1062.   "    b->yy_ch_buf[2] = YY_END_OF_BUFFER_CHAR;",
  1063.   "",
  1064.   "    b->yy_buf_pos = &b->yy_ch_buf[1];",
  1065.   "",
  1066.   "%-",
  1067.   "    b->yy_is_interactive = file ? isatty( fileno(file) ) : 0;",
  1068.   "%+",
  1069.   "    b->yy_is_interactive = 0;",
  1070.   "%*",
  1071.   "",
  1072.   "    b->yy_fill_buffer = 1;",
  1073.   "",
  1074.   "    b->yy_eof_status = EOF_NOT_SEEN;",
  1075.   "    }",
  1076.   "",
  1077.   "",
  1078.   "%-",
  1079.   "#ifdef YY_USE_PROTOS",
  1080.   "static void yy_push_state( int new_state )",
  1081.   "#else",
  1082.   "static void yy_push_state( new_state )",
  1083.   "int new_state;",
  1084.   "#endif",
  1085.   "%+",
  1086.   "void yyFlexLexer::yy_push_state( int new_state )",
  1087.   "%*",
  1088.   "    {",
  1089.   "    if ( yy_start_stack_ptr >= yy_start_stack_depth )",
  1090.   "        {",
  1091.   "        int new_size;",
  1092.   "",
  1093.   "        yy_start_stack_depth += YY_START_STACK_INCR;",
  1094.   "        new_size = yy_start_stack_depth * sizeof( int );",
  1095.   "",
  1096.   "        if ( ! yy_start_stack )",
  1097.   "            yy_start_stack = (int *) yy_flex_alloc( new_size );",
  1098.   "",
  1099.   "        else",
  1100.   "            yy_start_stack = (int *) yy_flex_realloc(",
  1101.   "                    (void *) yy_start_stack, new_size );",
  1102.   "",
  1103.   "        if ( ! yy_start_stack )",
  1104.   "            YY_FATAL_ERROR(",
  1105.   "            \"out of memory expanding start-condition stack\" );",
  1106.   "        }",
  1107.   "",
  1108.   "    yy_start_stack[yy_start_stack_ptr++] = YY_START;",
  1109.   "",
  1110.   "    BEGIN(new_state);",
  1111.   "    }",
  1112.   "",
  1113.   "",
  1114.   "%-",
  1115.   "static void yy_pop_state()",
  1116.   "%+",
  1117.   "void yyFlexLexer::yy_pop_state()",
  1118.   "%*",
  1119.   "    {",
  1120.   "    if ( --yy_start_stack_ptr < 0 )",
  1121.   "        YY_FATAL_ERROR( \"start-condition stack underflow\" );",
  1122.   "",
  1123.   "    BEGIN(yy_start_stack[yy_start_stack_ptr]);",
  1124.   "    }",
  1125.   "",
  1126.   "",
  1127.   "%-",
  1128.   "static int yy_top_state()",
  1129.   "%+",
  1130.   "int yyFlexLexer::yy_top_state()",
  1131.   "%*",
  1132.   "    {",
  1133.   "    return yy_start_stack[yy_start_stack_ptr - 1];",
  1134.   "    }",
  1135.   "",
  1136.   "",
  1137.   "%-",
  1138.   "#ifdef YY_USE_PROTOS",
  1139.   "static void yy_fatal_error( const char msg[] )",
  1140.   "#else",
  1141.   "static void yy_fatal_error( msg )",
  1142.   "char msg[];",
  1143.   "#endif",
  1144.   "    {",
  1145.   "    (void) fprintf( stderr, \"%s\\n\", msg );",
  1146.   "    exit( 1 );",
  1147.   "    }",
  1148.   "",
  1149.   "%+",
  1150.   "",
  1151.   "void yyFlexLexer::LexerError( const char msg[] )",
  1152.   "    {",
  1153.   "    cerr << msg << '\\n';",
  1154.   "    exit( 1 );",
  1155.   "    }",
  1156.   "%*",
  1157.   "",
  1158.   "",
  1159.   "/* Redefine yyless() so it works in section 3 code. */",
  1160.   "",
  1161.   "#undef yyless",
  1162.   "#define yyless(n) \\",
  1163.   "    do \\",
  1164.   "        { \\",
  1165.   "        /* Undo effects of setting up yytext. */ \\",
  1166.   "        yytext[yyleng] = yy_hold_char; \\",
  1167.   "        yy_c_buf_p = yytext + n - YY_MORE_ADJ; \\",
  1168.   "        yy_hold_char = *yy_c_buf_p; \\",
  1169.   "        *yy_c_buf_p = '\\0'; \\",
  1170.   "        yyleng = n; \\",
  1171.   "        } \\",
  1172.   "    while ( 0 )",
  1173.   "",
  1174.   "",
  1175.   "/* Internal utility routines. */",
  1176.   "",
  1177.   "#ifndef yytext_ptr",
  1178.   "#ifdef YY_USE_PROTOS",
  1179.   "static void yy_flex_strcpy( char *s1, const char *s2 )",
  1180.   "#else",
  1181.   "static void yy_flex_strcpy( s1, s2 )",
  1182.   "char *s1;",
  1183.   "const char *s2;",
  1184.   "#endif",
  1185.   "    {",
  1186.   "    while ( (*(s1++) = *(s2++)) )",
  1187.   "        ;",
  1188.   "    }",
  1189.   "#endif",
  1190.   "",
  1191.   "",
  1192.   "#ifdef YY_USE_PROTOS",
  1193.   "static void *yy_flex_alloc( unsigned int size )",
  1194.   "#else",
  1195.   "static void *yy_flex_alloc( size )",
  1196.   "unsigned int size;",
  1197.   "#endif",
  1198.   "    {",
  1199.   "    return (void *) malloc( size );",
  1200.   "    }",
  1201.   "",
  1202.   "#ifdef YY_USE_PROTOS",
  1203.   "static void *yy_flex_realloc( void *ptr, unsigned int size )",
  1204.   "#else",
  1205.   "static void *yy_flex_realloc( ptr, size )",
  1206.   "void *ptr;",
  1207.   "unsigned int size;",
  1208.   "#endif",
  1209.   "    {",
  1210.   "    return (void *) realloc( ptr, size );",
  1211.   "    }",
  1212.   "",
  1213.   "#ifdef YY_USE_PROTOS",
  1214.   "static void yy_flex_free( void *ptr )",
  1215.   "#else",
  1216.   "static void yy_flex_free( ptr )",
  1217.   "void *ptr;",
  1218.   "#endif",
  1219.   "    {",
  1220.   "    free( ptr );",
  1221.   "    }",
  1222.   0
  1223. };
  1224.